package com.icity.service;

import java.util.List;
import java.util.Map;

import com.icity.entity.Menu;
import com.icity.entity.RoleUser;
import com.icity.entity.User;
import com.icity.entity.system.MenuListSupport;
import com.icity.entity.system.RoleMenu;
import com.icity.entity.system.TableSupport;

public interface SystemService {
	List<MenuListSupport> getMenuListByUser(Map<Object,Object> map);
	TableSupport<?> getMenuLsit(Map<Object,Object> map);
	int deleteMenuById(int id);
	int deleteUserById(int id);
	List<Map<Object,Object>> getParentMen();
	List<Map<Object,Object>> getParentUser();
	int saveMenu(Menu menu);
	int saveRoleMenu(RoleMenu roleMenu);
	int saveUser(User user);
	int saveRoleUser(RoleUser roleUser);
	int updateMenu(Menu menu);
	int updateUser(User user);
	int updateRoleUser(RoleUser user);
	boolean isExitMenuByName(int id);
	boolean isExitUserByName(int id);
	TableSupport<?> getUserList(Map<Object,Object> map);
	List<User> getUserInfo(Map<Object,Object> map);
	int updatePwd(String phone,String pwd);
}
